package com.gpzx.zx.module.home.ui.activity

import android.content.Context
import android.content.Intent
import android.os.Bundle

import com.gpzx.zx.R
import com.gpzx.zx.databinding.ActivityAuthorInfoBinding

import com.gpzx.zx.module.home.frame.presenter.AuthorPresenter
import com.gpzx.zx.module.home.frame.view.AuthorView
import com.wkq.base.frame.activity.MvpBindingActivity

/**
 *
 * 作者:吴奎庆
 *
 * 时间:2020/7/14
 *
 * 用途:
 */


class AuthorActivity :MvpBindingActivity<AuthorView, AuthorPresenter,ActivityAuthorInfoBinding>() {

    var orgId:String=""
    companion object {
        fun newInstance(context: Context, orgId: String) {
            var intnet = Intent(context, AuthorActivity().javaClass)
            intnet.putExtra("orgId", orgId)
            context.startActivity(intnet)
        }
    }
    override fun getLayoutId(): Int {

        return R.layout.activity_author_info
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mvpView.initView()
        orgId= intent.getStringExtra("orgId")
        getPresenter().getData(this,orgId)
    }

}